package com.example.mapper;

import com.example.entity.Asset;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AssetMapper {

    List<Asset> selectAll(Asset asset);

    void insert(Asset asset);

    void updateById(Asset asset);

    @Delete("delete from `asset` where id = #{id}")
    void deleteById(Integer id);

    @Select("select * from `asset` where id = #{id}")
    Asset selectById(Integer id);

}
